package vashion.azeroth.core.personal.dao;

import java.util.ArrayList;

import vashion.azeroth.core.dao.BaseDao;
import vashion.azeroth.core.dao.DaoRepository;
import vashion.azeroth.core.personal.pojo.PersonalMember;

@DaoRepository
public interface PersonalMemberDao extends BaseDao<PersonalMember> {

	PersonalMember getMemberByName(String memberName);
	
	String findOldPwd(Long memberId);

	boolean updatePwd(String newPwd);
	
	int updateRegistrationId(PersonalMember member);

	PersonalMember getMemberByNick(String nickName);

	PersonalMember findHigherBymemberId(PersonalMember member);

	ArrayList<PersonalMember> findLowererByInviteMemberId(PersonalMember member);
	
	ArrayList<PersonalMember> findNoGroupAgent(Long memberId);
	
	ArrayList<PersonalMember> queryGroupMember(Long groupId);
	
}
